package org.lilred.nzbberry.http.cookie;

import java.util.Enumeration;
import java.util.Vector;

public class CookieList {
	private Vector _cookies = new Vector();
	
	public void addCookie(HttpCookie cookie) {
		_cookies.addElement(cookie);
	}
	
	public HttpCookie cookieAt(int index) {
		return (HttpCookie) _cookies.elementAt(index);
	}
	
	public boolean contains(HttpCookie cookie) {
		return _cookies.contains(cookie);
	}
	
	public Enumeration elements() {
		return _cookies.elements();
	}
	
	public void ensureCapacity(int minCapacity) {
		_cookies.ensureCapacity(minCapacity);
	}
	
	public HttpCookie firstElement() {
		return (HttpCookie) _cookies.firstElement();
	}
	
	public int indexOf(HttpCookie cookie) {
		return _cookies.indexOf(cookie);
	}
	
	public int indexOf(HttpCookie cookie, int index) {
		return _cookies.indexOf(cookie, index);
	}
	
	public void insertElementAt(HttpCookie cookie, int index) {
		_cookies.insertElementAt(cookie, index);
	}
	
	public boolean isEmpty() {
		return _cookies.isEmpty();
	}
	
	public HttpCookie lastElement() {
		return (HttpCookie) _cookies.lastElement();
	}
	
	public int lastIndexOf(HttpCookie cookie) {
		return _cookies.lastIndexOf(cookie);
	}
	
	public int lastIndexOf(HttpCookie cookie, int index) {
		return _cookies.lastIndexOf(cookie, index);
	}
	
	public void removeAllElements() {
		_cookies.removeAllElements();
	}
	
	public void removeElementAt(int index) {
		_cookies.removeElementAt(index);
	}
	
	public void setElementAt(HttpCookie cookie, int index) {
		_cookies.setElementAt(cookie, index);
	}
	
	public void setSize(int newSize) {
		_cookies.setSize(newSize);
	}
	
	public int size() {
		return _cookies.size();
	}
	
	public void trimToSize() {
		_cookies.trimToSize();
	}
}
